package com.education.wisdom.controller;


import com.education.common.core.BaseController;
import com.education.common.pojo.SFlashClassTwo;
import com.education.common.utils.ApiReturnObject;
import com.education.wisdom.feign.WelcoFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 课程虚拟教学 信息操作处理
 *
 * @author d
 * @date 2020-12-31
 */
@RestController
@RequestMapping("/sFlashClass")
public class SFlashClassController extends BaseController {

    @Autowired
    private WelcoFeign welcoFeign;

    /**
     * 查询课程虚拟教学列表
     */
    @GetMapping("/list")
    public ApiReturnObject list() {
        List<SFlashClassTwo> sFlashClasses = welcoFeign.flashList();
        return new ApiReturnObject("200","查询成功",sFlashClasses);
    }



}